package com.beiben.workflow.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.DateUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审批记录对象 wf_check
 * 
 * @author 熊国强
 * @date 2020-12-17
 */
public class WfCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审批ID */
    private Long checkId;

    /** 上级ID */
    private Long parentId;

    /** 申请ID */
    @Excel(name = "申请ID")
    private Long applyId;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long checkUserId;

    /** 审核状态（0：待审核，1：审核通过，2：打回，3：拒绝） */
    @Excel(name = "审核状态", readConverterExp = "0=：待审核，1：审核通过，2：打回，3：拒绝")
    private String state;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    public void setCheckId(Long checkId) 
    {
        this.checkId = checkId;
    }

    public Long getCheckId() 
    {
        return checkId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setCheckUserId(Long checkUserId) 
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId() 
    {
        return checkUserId;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("checkId", getCheckId())
            .append("parentId", getParentId())
            .append("applyId", getApplyId())
            .append("checkUserId", getCheckUserId())
            .append("state", getState())
            .append("checkTime", getCheckTime())
            .append("createTime", getCreateTime())
            .toString();
    }

}
